package com.zhitong.ztblog.entity;


import com.zhitong.ztblog.utils.DateUtil;

import java.util.Date;

public class Log {
    private int id;
    private String name;
    private String time;
    private String nickName;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = DateUtil.format(time,"yyyy-MM-dd HH:mm:ss");
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    @Override
    public String toString() {
        return "Log{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", time='" + time + '\'' +
                ", nickName='" + nickName + '\'' +
                '}';
    }
}
